/**
 * Created by mapbar_front on 2019/7/31.
 */
import React from 'react';

export const themes = {
    light: {
        background: '#f99',
    },
    dark: {
        background: '#9ff',
    }
}

export const ThemeContext = React.createContext(themes.light);

// export function higherOrder(WrappedComponent){
//     return <div>
//         <h2>这是一个高阶组件</h2>
//         <WrappedComponent/>
//     </div>
// }